import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 楦头资料查询
export const LastDataQuery = (parms:any) => {
    return service.post<any,any>(`/bioDeptWrok/getLastInfoQuery?lastNo=${parms.lastNo}&style=${parms.style}`)
}

// 楦头型体查询
export const LastStyleQuery = (lastNo:string) => {
    return service.post<any,any>(`/bioDeptWrok/getLastStyleQuery?lastNo=${lastNo}`)
}

// 号码查询
export const SizeQuery = (lastNo:string) => {
    return service.post<any,any>(`/bioDeptWrok/getLastSizeQuery?lastNo=${lastNo}`)
}

// 楦头资料删除
export const deletLastDataQuery = (lastNo:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/lastInfoDelete?lastNo=${lastNo}`)
}

// 楦头增加
export const AddLastDataQuery = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/lastInfoAdd`,parms)
}

// 楦头号码删除
export const deleteLast = (parms:any)=> {
    return LoginWork.post<any,any>(`/bioDeptWrok/lastSizeDelete?seqNo=${parms.seqNo}&lastNo=${parms.lastNo}`)
}

// 楦头号码删除
export const deleteLastD = (parms:any)=> {
    return LoginWork.post<any,any>(`/bioDeptWrok/lastStyleDelete?lastNo=${parms.lastNo}&style=${parms.style}`)
}

// 
export const AddList = (lastNo:any,parms:any)=> {
    return LoginWork.put<any,any>(`/bioDeptWrok/lastStyleAdd?lastNo=${lastNo}`,parms)
}

// 型体查询
export const styleQuery = (parms:any,style:string)=> {
    return service.post<any,any>(`/back/getStyleQuery?style=${style}`,parms)
}